<?php defined('BASEPATH') OR exit('No direct script access allowed');

// Code here is run before frontend controllers
class Public_Controller extends MY_Controller
{
	function Public_Controller()
	{	
		parent::MY_Controller();

		$this->benchmark->mark('public_controller_start');

		// Prepare Asset library
	    $this->asset->set_theme(NULL);

		// Enable profiler on local box
	    if( ENV == 'local' && $this->input->get('_debug') )
	    {
	    	$this->output->enable_profiler(TRUE);
	    }
		$this->template->server = $_SERVER;
		$this->template->enable_parser(FALSE)->set('site_slogan', $this->settings->item('site_slogan'))->set_layout('default');

		$this->benchmark->mark('public_controller_end');
	}
}
